package com.cg.design.depthdesign.factorymethod.factory;

import com.cg.design.depthdesign.factorymethod.buttons.Button;
import com.cg.design.depthdesign.factorymethod.buttons.WindowsButton;

/**
 * 具体创建者
 * <p>
 * 具体创建者将重写工厂方法以改变其所返回的产品类型。
 *
 * @program: LeetCode->WindowsDialog
 * @author: cg
 * @create: 2022-04-05 23:28
 **/
public class WindowsDialog extends Dialog {

    @Override
    public Button createButton() {
        return new WindowsButton();
    }
}
